home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98a.txt
/
000162_icon-group-sender _Wed Apr 15 13:05:27 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id NAA20516
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Wed, 15 Apr 1998 13:05:26 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA23516; Wed, 15 Apr 1998 13:05:25 -0700
Posted-Date: Wed, 15 Apr 1998 14:36:36 -0500 (CDT)
Message-Id: <3.0.5.32.19980415143501.00a3a330@post.its.mcw.edu>
X-Sender: cdt@post.its.mcw.edu
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
Date: Wed, 15 Apr 1998 14:35:01
To: DLucido <DLucido@aol.com>, icon-group@optima.CS.Arizona.EDU
From: Chris Tenaglia <cdt@post.its.mcw.edu>
Subject: Re: Tables of records
In-Reply-To: <78201599.35340ec3@aol.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 757
We do this extensively.
Even better is that the index of the table
does not have to be numeric. It can be
string, or set, or anything...
Chris.
At 09:34 PM 4/14/98 EDT, DLucido wrote:
>...
>records with the following code:
>record node(value,lchild,rchild)
>
>procedure main(arg)
>
> tree:=table()
> tree[1]:=node(2,3,"Hello")
> tree[2]:=node(5,6,"World")
> tree[3]:=node(0,1,"Oops")
>
> every i:=key(tree)do
> write(i,":",tree[i].rchild)
>
>end
>
>While the order of the keys in unpredictable, the code can store a table of
>records.
>Is this a feature or something that should be avoided?
>
> David Lucido
> dlucido@aol.com